﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Gui/masterPage.Master" AutoEventWireup="true" CodeBehind="ProductDetail.aspx.cs" Inherits="OnlineStore.Gui.ProductDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
    
    <h1>Chào Mừng ng bạn đến với Shop OnlineStore</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentCenter" runat="server">
    <h2> Hãy thỏa sức shopping online cùng shop quần áo rẻ đẹp nhé.</h2>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentTop" runat="server">
     <h1><asp:Label ID="lb_Title" runat="server" Text="Chi tiết sản phẩm"></asp:Label></h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <%--<form  method="get" runat="server" id="Cart"  submitdisabledcontrols="False">--%>
        <asp:Label ID="Product_find" Visible="false" runat="server" Text="sản phẩm không được tìm thấy"></asp:Label>
<%
    if (this.Product_find.Visible == false)
    {
%>
       <div style="width: 100%; margin-bottom: 30px;">
      <table style="width: 100%; border-collapse: collapse;">
        <tbody><tr>
          <td style="text-align: center; width: 250px; vertical-align: top;">
                 <asp:HyperLink ID="HL_Img_product" runat="server">
                  <asp:Image ID="Image_product" runat="server" style="margin-bottom: 3px" Width="250px" />
                 </asp:HyperLink>             
              <br/>
          </td>
          <td style="padding-left: 15px; width: 296px; vertical-align: top;">
            <table width="100%">
              <tbody>
               <tr>
                <td style="width: 68px"><b style="width:100px">Giá:</b></td>
                <td>                  
                    <asp:Label ID="lb_price" runat="server" Text=""></asp:Label>              
                </td>
              </tr>
                            <tr>
                <td style="width: 68px"><b>Trạng thái:</b></td>
                <td>
                    <asp:Label ID="lb_Status" runat="server"></asp:Label>
                </td>
              </tr>
              <tr>
                <td style="width: 68px"><b>Kiểu:</b></td>
                <td>
                    <asp:Label ID="lb_Type" runat="server" ></asp:Label>
                </td>
              </tr>
              <tr>
                <td style="width: 68px"><b>màu sắc</b></td>
                <td><p>
                    <asp:Label ID="lb_Color" runat="server" ></asp:Label>
                </p></td>
              </tr>
              <tr>
                <td style="width: 68px"><b>Đánh giá:</b></td>
                <td><div><img src="../../img/special.png" /><img src="../../img/special.png" /><img src="../../img/special.png" /><img src="../../img/special.png" /><img src="../../img/special.png" /></div></td>
              </tr>
              <tr>
                <td style="width: 68px"><b>Mô tả</b></td>
                <td><p>
                    <asp:Label ID="lb_Introduce" runat="server" ></asp:Label>
                    </p></td>
              </tr>
			</tbody>
            </table>
                </br>

            
                <div style="width: 100%;" id="nut-may-in">
                    <table>
                    <tbody>
                        <tr>
                            <td>
                                
                                <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share to facebook</a>
                                <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
                                <br />
                             </td>
                            <td>
                                <img src="../../img/icon-print-02.jpg" alt="bản in" width="16" height="16"> <b>Bản In</b></a>
                            </td>
                        </tr>
                    </tbody>
                    </table>
                 </div>
                 <div class="content">
                    Số lượng:                
                     <asp:TextBox ID="Qty" runat="server" size="3" value="1"></asp:TextBox>
                        &nbsp;<asp:Button ID="add_to_cart" runat="server" Text="Chọn mua" 
                         onclick="Lick_Mua"/>
                 </div>
            </td>
        </tr>
      </tbody>
      </table>
      <div>
        <p><b> Chi tiết</b> </p>
        <p>
            <asp:Label ID="lb_Detail" runat="server"></asp:Label>
        </p>
      </div>
    </div>
<% 
    }
%>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentButtom" runat="server">
    <h1>Các sản phẩm tương tự</h1>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Contentlist" runat="server">
    <asp:DataList ID="mainlist" runat="server" CellPadding="2" CellSpacing="2" 
        RepeatColumns="4" CssClass="list">
    <ItemTemplate>
                   <a href = "/Gui/ProductDetail.aspx?id=<%#DataBinder.Eval(Container.DataItem, "id")%>">
                    <img src="/Bll/ImageHttpHandler.ashx?id=<%# DataBinder.Eval(Container.DataItem,"Picture")%>" title="<%# DataBinder.Eval(Container.DataItem, "Product_Name")%>" width="120" height="120" alt="<%# DataBinder.Eval(Container.DataItem, "Product_Name")%>"></a><br>
                  <div><img src="../../img/special.png" /><img src="../../img/special.png" /><img src="../../img/special.png" /><img src="../../img/special.png" /><img src="../../img/special.png" /></div>
                 <a href = "/Gui/ProductDetail.aspx?id=<%#DataBinder.Eval(Container.DataItem, "id")%>"><%# DataBinder.Eval(Container.DataItem, "Product_Name")%></a><br>
                 <span style="color: #999; font-size: 11px;"><%# DataBinder.Eval(Container.DataItem, "Type")%></span><br>
                  <span style="color: #900; font-weight: bold;"><%# String.Format("{0:0,0 VNĐ}", DataBinder.Eval(Container.DataItem, "Price"))%> </span> <br>
    </ItemTemplate>
    </asp:DataList>
</asp:Content>
<asp:Content ID="content7" ContentPlaceHolderID="ContentLogin" runat="server">
    <asp:HyperLink ID="HL_tab_login" runat="server"  NavigateUrl="/gui/Login.aspx" ForeColor="Red">(Đăng nhập) </asp:HyperLink> |
    <asp:HyperLink ID="HL_tab_Logout" runat="server" Visible="false" NavigateUrl="/gui/Login.aspx?logout=true">Đăng Xuất | </asp:HyperLink>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="ContentCartRight" runat="server">
        <asp:GridView ID="ListCartRight" runat="server" AutoGenerateColumns="False" 
           GridLines="None">
            <Columns>
                <asp:BoundField DataField="NumberOrder" SortExpression="NumberOrder" 
                    DataFormatString="{0} x " >
                
                <ControlStyle Width="10px" />
                </asp:BoundField>
                
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataTextField="Product_Name" 
                    DataNavigateUrlFormatString="/gui/ProductDetail.aspx?id={0}" />
            </Columns>
        </asp:GridView>
    <br>
    <table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">
     <tbody>
        <tr>
            <td align="right"><span class="cart_module_total"><b>Tiền hàng:</b></span></td>
            <td align="right">
                <asp:Label ID="lb_Sum_product" runat="server" CssClass="cart_module_total" >0 VNĐ</asp:Label>
             </td>
        </tr>
        <tr>
            <td align="right"><span class="cart_module_total"><b>Tổng cộng:</b></span></td>
            <td align="right"><span class="cart_module_total">
                <asp:Label ID="lb_Sum" runat="server" CssClass="cart_module_total">0 VNĐ</asp:Label></span></td>
        </tr>
     </tbody></table>
</asp:Content>